package ops.controller;

import ops.Application;

public class ControllerManager {
	
	private CourseController courseController;
	private SubjectController subjectController;
	private StudentController studentController;
	private ClassController classController;
	private TeacherController teacherController;
	private TermController termController;
	private GradesController gradesController;
	private SubscriptionController subscriptionController;
	private LoginController loginController;

	public ControllerManager() {
		init();
	}

	public static ControllerManager getInstance() {
		return Application.getInstance().getControllerManager();
	}
	
	private void init() {
		courseController = new CourseController();
		subjectController = new SubjectController();
		studentController = new StudentController();
		classController = new ClassController();
		teacherController = new TeacherController();
		termController = new TermController();
		gradesController = new GradesController();
		subscriptionController = new SubscriptionController();
		loginController = new LoginController();
	}

	public CourseController getCourseController() {
		return courseController;
	}

	public SubjectController getSubjectController() {
		return subjectController;
	}
	
	public StudentController getStudentController() {
		return studentController;
	}
	
	public ClassController getClassController() {
		return classController;
	}
	
	public TeacherController getTeacherController() {
		return teacherController;
	}

	public TermController getTermController() {
		return termController;
	}

	public GradesController getGradesController() {
		return gradesController;
	}

	public SubscriptionController getSubscriptionController() {
		return subscriptionController;
	}

	public LoginController getLoginController() {
		return loginController;
	}
}
